import {createRouter,createWebHashHistory} from 'vue-router'
import Login from '../views/Login.vue'

const hash = createWebHashHistory();

const routes = [
    {
      path: '/',
      name: 'login',
      component:Login
    },
    {
      path: '/main',
      name: 'main',
      component:()=>import('../views/Main.vue')
    },
 
  ]
  
  const router = createRouter({
    history: hash,
    routes
  });
  
  export default router